<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>read</title>
    <link rel="stylesheet" href="common/css/lib/fontawesome/css/all.css">
    <link rel="stylesheet" href="common/css/base.css">
    <link rel="stylesheet" href="read/css/layout.css">
    <link rel="stylesheet" href="read/css/read.css">
    <script src="common/js/Base.js"></script>
    <script src="read/js/message/MessageBuilder.js"></script>
    <script src="read/js/view/ReadView.js"></script>
    <script src="read/js/app/AppBridge.js"></script>
    <script src="read/js/Main.js"></script>
</head>
<body>

<div id="prompt-view-button" class="prompt-message">
    <button onclick="webBridge.clear()">清空</button>
    <button onclick="setMessages()">列表</button>
    <button onclick="insertLast()">最后</button>
    <button onclick="addBefore()">之前</button>
    <button onclick="prompt()">提示</button>
    <button onclick="at()">@</button>
</div>
<div id="prompt-view" class="prompt-message">
    <div id="prompt-view-chat"></div>
    <div id="prompt-view-at"></div>
    <div id="prompt-view-text" ></div>
</div>
<div id="message-scroll" class="outer message-list" onscroll="readView.handleScroll(event)">
	<div id="message-list" class="inner"></div>
</div>
<a href="www.baidu.com">baidu</a>
<div style="display: none">
    <img id="file-icon-audio" src="read/images/file/audio@2x.png" height="80" width="80"/>
    <img id="file-icon-code" src="read/images/file/code@2x.png" height="80" width="80"/>
    <img id="file-icon-default" src="read/images/file/default@2x.png" height="80" width="80"/>
    <img id="file-icon-excel" src="read/images/file/excel@2x.png" height="80" width="80"/>
    <img id="file-icon-exe" src="read/images/file/exe@2x.png" height="80" width="80"/>
    <img id="file-icon-floder" src="read/images/file/floder@2x.png" height="80" width="82"/>
    <img id="file-icon-icon_top_ground_40" src="read/images/file/icon_top_ground_40@2x.png" height="80" width="80"/>
    <img id="file-icon-online_tip_groud" src="read/images/file/online_tip_groud@2x.png" height="32" width="66"/>
    <img id="file-icon-pdf" src="read/images/file/pdf@2x.png" height="80" width="80"/>
    <img id="file-icon-pic" src="read/images/file/pic@2x.png" height="80" width="80"/>
    <img id="file-icon-pic_psd" src="read/images/file/pic_psd@2x.png" height="80" width="80"/>
    <img id="file-icon-ppt" src="read/images/file/ppt@2x.png" height="82" width="80"/>
    <img id="file-icon-text" src="read/images/file/text@2x.png" height="80" width="80"/>
    <img id="file-icon-video" src="read/images/file/video@2x.png" height="80" width="80"/>
    <img id="file-icon-word" src="read/images/file/word@2x.png" height="80" width="80"/>
    <img id="file-icon-zip" src="read/images/file/zip@2x.png" height="80" width="80"/>
</div>
</body>
<script>
    // readView.setMaxSize(4);
    var one = '{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！385"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"1614596201520","name":"小龙女","nameVisible":true,"own":true,"receive":true,"status":0,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}}\n';
    var list = '[{"avatar":"","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[],"timestamp":0},"id":"","key":"","name":"","nameVisible":false,"own":false,"receive":false,"status":0,"timeText":"","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！0"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":true,"receive":true,"status":2,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！1"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":false,"receive":false,"status":1,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！2"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":true,"receive":true,"status":2,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！3"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":false,"receive":false,"status":1,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！4"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":true,"receive":true,"status":2,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！5"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":false,"receive":false,"status":1,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！6"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"1234567","key":"1234567","name":"小龙女","nameVisible":true,"own":true,"receive":true,"status":2,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！7"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":false,"receive":false,"status":1,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！8"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":true,"receive":true,"status":2,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}},{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！9"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"","key":"","name":"小龙女","nameVisible":true,"own":false,"receive":false,"status":1,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}}]\n';

    function setMessages() {
        webBridge.setMessages(list);
    }

    var i = 0;

    function insertLast() {
        i++;
        var own = (i % 2) === 0;
        one = '{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"sections":[{"items":[{"type":"text","value":"你好啊！385"},{"type":"image","value":{"size":0,"url":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg"}},{"type":"at","value":{"text":"赵四","userId":"sss"}},{"type":"file","value":{"extension":"txt","id":"100","name":"file.txt","size":15,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/file.txt"}},{"type":"video","value":{"extension":"txt","id":"100","name":"video.mp4","size":41780,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/video.mp4"}},{"type":"audio","value":{"extension":"txt","id":"100","name":"audio.mp3","size":27250,"sizeText":"1KB","url":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-fx-view/file/chat/audio.mp3"}}]}],"timestamp":0},"id":"' + i + '","key":"' + i + '","name":"小龙女","nameVisible":true,"own":' + own + ',"receive":true,"status":0,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{}}\n';
        one = '{"avatar":"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2605426497,471263779&fm=26&gp=0.jpg","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"key":"965a97143b65-49fb-a158-006e6f44e3cf","sections":[{"items":[{"key":"1a58f9d117f6-4810-acc7-fc059373a6a4","type":"text","value":"fdf"}]}],"timestamp":0},"id":"","key":' + i + ',"name":"小龙女","nameVisible":true,"own":' + own + ',"receive":false,"status":0,"timeText":"2020-01-01","timeVisible":true,"timestamp":0,"type":0,"user":{},"userId":"kkkyyy"}';

        one = '{"avatar":"file:/C:/Users/XiaHui/.oim/data/10000/images/head/user/bfabdb51fe5209e920f1623606471057","content":{"font":{"bold":false,"color":"000000","italic":false,"name":"微软雅黑","size":12,"underline":false},"key":"f500dd3f60d2-4f5d-a648-3f71390fc94a","sections":[{"items":[{"key":"6bae80ea3610-4a59-aa58-1bebcf053d06","type":"face","value":{"categoryId":"classical","key":"78","path":"file:/E:/Workspaces/Own/gitblit/oim-fx/oim-element-face/target/classes/com/onlyxiahui/oim/face/classical/gif/78.gif","text":"握手"}}]}],"timestamp":1616835316991},"key":"f500dd3f60d2-4f5d-a648-3f71390fc94a","name":"10000","nameVisible":false,"own":true,"receive":false,"status":2,"timeText":"04:55:16","timeVisible":false,"timestamp":1616835316991,"type":0,"user":{"avatar":"file:/C:/Users/XiaHui/.oim/data/10000/images/head/user/bfabdb51fe5209e920f1623606471057","head":"6","id":"803307450580172800","name":"","nickname":"10000","remark":""},"userId":"803307450580172800"}';
        webBridge.insertLast(one);
    }

    function addBefore() {
        webBridge.insertBefore(one);
    }

    var i = 0;

    function at() {
        i++;
        webBridge.insertAt('{"messageKey":"1234567", "chatUserName":"哈哈哈", "chatText":"你好' + i + '"}');
    }

    function prompt() {
        i++;
        webBridge.insertChatPrompt('{"messageKey":"1234567", "chatUserName":"哈哈哈", "chatText":"你好' + i + '"}')
    }
</script>
</html>
